<?php //$Rev:: 55         $ // DO NOT REMOVE

function load_loadMod(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        $obj->core->module->aim_loadModule(strtolower($data['message_text']));
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

function loadall_loadAllMod(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        $obj->core->utilities->aim_send_im($data['screenname'], 'Reloading all modules...', true);
        $count = $obj->core->module->aim_loadAllModules();
        $obj->core->utilities->aim_send_im($data['screenname'], 'Done.  Reloaded ' . $count . ' modules.', true);
        unset($count);
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

function unload_unloadMod(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        $obj->core->module->aim_unloadCommand(strtolower($data['message_text']));
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

?>